Dobby's Warnings and Sacrifices
Harry Potter and the Chamber of SecretsThe house-elf Dobby repeatedly tries to protect Harry Potter from the dangers at Hogwarts, often using extreme methods.
increasing
Bearing strength in each event
decreasing
Dobby's First Warning

A Mysterious Visitor
The House-elf in the Bedroom
On Harry's twelfth birthday, a strange creature appears in his bedroom at the Dursleys'. Dobby the house-elf warns Harry not to return to Hogwarts, claiming there is a plot to make terrible things happen. He has been intercepting Harry's letters from his friends to make him feel isolated.
The Pudding Disaster
When Harry refuses to promise to stay away, Dobby drops a floating pudding, causing chaos. The Dursleys blame Harry, and he receives a warning from the Ministry for underage magic. Dobby's actions seem malicious but are driven by a desperate desire to keep Harry safe.
The Escape
Harry is locked in his room, but Ron and the Weasley twins rescue him in the flying car. Dobby's warning lingers, though Harry dismisses it as a trick by Draco Malfoy.
The Rogue Bludger

A Dangerous Game
The Bludger Attacks Harry
During the Gryffindor vs. Slytherin Quidditch match, a Bludger relentlessly targets Harry, ignoring other players. Fred and George try to protect him, but the Bludger seems enchanted. Harry eventually catches the Snitch but breaks his arm in the process.
Dobby's Confession
Later, in the hospital wing, Dobby appears and admits he enchanted the Bludger. He wanted Harry to be injured badly enough to be sent home, away from the danger of the Chamber of Secrets. Dobby is desperate and willing to harm Harry to save him.
The Cost of Loyalty
Dobby reveals that he is punishing himself for his actions. He also hints that the Chamber of Secrets has been opened before and that history is repeating itself. Despite his methods, Dobby's loyalty to Harry is absolute.
Dobby's Freedom

The Final Gift
Harry's Trick
After the confrontation in the Chamber, Lucius Malfoy arrives at Hogwarts. Harry tricks him into giving Dobby a sock—a piece of clothing. According to house-elf law, this frees Dobby from servitude.
Dobby's Joy
Dobby is overjoyed and declares himself a free elf. He uses his magic to fling Lucius Malfoy down the stairs. Harry and Dobby share a moment of triumph, and Dobby promises to never try to save Harry's life again.
A New Beginning
Dobby disappears with a crack, now free to live his own life. Harry's compassion and cleverness grant Dobby the freedom he has longed for, ending the elf's suffering and showcasing Harry's moral character.
on Harry's birthday, before the start of term
during the Quidditch match against Slytherin, October
after the Chamber of Secrets is resolved, late May